package com.investment.service.impl;

import com.investment.bean.Vip;
import com.investment.dao.VipDao;
import com.investment.service.VipService;
import com.investment.util.DaoException.DbException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;

/**
 * Created by veicth on 17/2/25.
 */
@Service("vipService")
public class VipServiceImpl implements VipService{
    @Autowired
    private VipDao vipDao;


    @Override
    public int insert(Vip vip) throws DbException {
        return vipDao.insert(vip);
    }

    @Override
    public Vip find(String id) throws DbException{
        return vipDao.selectOne(id);
    }
}
